package cn.kduck.code.entity.exception;

public class ExistEntityCodeException extends RuntimeException{

    private final String entityCode;

    public ExistEntityCodeException(String entityCode) {
        this.entityCode = entityCode;
    }

    public ExistEntityCodeException(String entityCode, String message) {
        super(message);
        this.entityCode = entityCode;
    }

    public String getEntityCode() {
        return entityCode;
    }
}
